package com.yzy.baselibrary.imageloader

import android.content.Context
import com.yzy.baselibrary.base.BaseApplication

/**
 *description: ImageLoader.
 *@date 2018/10/11 16:42.
 *@author: YinZeYu.
 */
class ImageLoader constructor(private var strategy: BaseImageLoaderStrategy) {

  fun loadImage(context: Context, config: ImageConfig) {
    strategy.loadImage(BaseApplication.INSTANCE, config)
  }


  fun setLoadImgStrategy(strategy: BaseImageLoaderStrategy) {
    this.strategy = strategy
  }

}